
class carts{
    constructor(id,goodsid,data="",qty=1) {
        this.userid = id*1;
        this.goodsid = goodsid*1;
        this.data = data;
        this.qty = qty*1;
    }
}

class deltete{
    constructor(userid, goodsid) {
        this.userid = userid*1;
        this.goodsid = goodsid;
    }
}

class select{
    constructor(id,page=1,size=10) {
        this.userid = id*1;
        this.page = page*1;
        this.size = size*1;
    }
}


class update{
    constructor(userid, goodsid, qty) {
        this.userid = userid*1;
        this.goodsid = goodsid*1;
        this.qty = qty*1;
    }
}
module.exports = {carts,deltete,select,update};